package com.probiz.estore.customer.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegularExpressionsValidate {
	
	public static boolean isMobileNO(String mobiles){       
        Pattern p =Pattern.compile("^[\\d]{9,11}$");
		Matcher m = p.matcher(mobiles);       
        return m.matches();       
    }   
     
    public static  boolean isEmail(String email){       
        String str = "^([\\w-]+)(.[\\w-]+)*@([\\w-]+\\.){1,5}([A-Za-z]){2,4}$";
        Pattern p = Pattern.compile(str);       
        Matcher m = p.matcher(email);       
        return m.matches();       
    } 

}
